package com.stox.charting.ui.swing.model;

import com.stox.resources.i18n.MessageSource;

public enum BarType {
	
	LINE(MessageSource.getMessage("Line"),null,null), 
	HLC(MessageSource.getMessage("Bar.hlc"),null,null),
	OHLC(MessageSource.getMessage("Bar.ohlc"),null,null),
	CANDLESTICK(MessageSource.getMessage("CandleStick"),null,null), 
	POINT_AND_FIGURE(MessageSource.getMessage("Point.and.Figure"),null,null), 
	EQUI_VOLUME(MessageSource.getMessage("EquiVolume"),null,null),
	SWING(MessageSource.getMessage("Swing"),null,null);
	
	
	
	private BarType(String text, 
			Class<?> processorClass,
			Class<?> painterClass) {
		this.text = text;
		this.processorClass = processorClass;
		this.painterClass = painterClass;
	}

	private final String text;
	private final  Class<?> processorClass;
	private final Class<?> painterClass;
	
	public String getText() {
		return text;
	}
	
	@Override
	public String toString() {
		return getText();
	}

	public Class<?> getProcessorClass() {
		return processorClass;
	}

	public Class<?> getPainterClass() {
		return painterClass;
	}
	
}
